package ink.tiptop.configuration;

import lombok.Data;
import lombok.Getter;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

/**
 * 2020年3月26日17:54:07
 * zjf
 * TODO 全局统一配置
 */
@Data
@ConfigurationProperties("global")
@Component
public class GlobalConfigurationProperties {

    @Value("${global.maven.home:}")
    private String mavenHome;

    @Value("${global.maven.target:}")
    private String target;

    @Value("${global.maven.log:}")
    private String log;

    @Value("${global.worker.install.timeout:3600}")
    private Long installTimeout = 3600L;

    @Value("${global.worker.scan.timeout:3600}")
    private Long scanTimeout = 3600L;

}
